The getOrderId method returns execution's original order id.
var getOrderId();
This method returns a string value representing the orderId for the order that was placed for this execution.
The following example demonstrates the use of getOrderId() method.
function start()
{
//retrieve account's executions orders
var account = getAccount();
var executions = account.getExecutions();
//loop through all executions
for(var i = 0; i < executions.length, i++)
{
var execution = executions[i];
//process execution
var orderId = execution.getOrderId();
}
//proceed further...
}
Copyright © 2006-2009 ActiveTick LLC